<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>Insert title here</title>
        <link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath }/assets/css/style.css" />
		<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath }/assets/jquery-easyui-1.4.3/themes/default/easyui.css" />
		<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath }/assets/jquery-easyui-1.4.3/themes/icon.css" />
		<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath }/assets/css/easyui.icon.css" />
		<script type="text/javascript"
	src="${pageContext.request.contextPath }/assets/jquery-easyui-1.4.3/jquery.min.js"></script>
		<script type="text/javascript"
	src="${pageContext.request.contextPath }/assets/jquery-easyui-1.4.3/jquery.easyui.min.js"></script>
		<script type="text/javascript"
	src="${pageContext.request.contextPath }/assets/jquery-easyui-1.4.3/locale/easyui-lang-zh_CN.js"></script>
		<script type="text/javascript"
	src="${pageContext.request.contextPath }/assets/jquery.js/jquery.json.js"></script>
		<script type="text/javascript"
	src="${pageContext.request.contextPath }/assets/jquery.js/jquery.fw.ext.js"></script>
		<script type="text/javascript"
	src="${pageContext.request.contextPath }/assets/js/jquery.form.js"></script>
		<script type="text/javascript"
	src="${pageContext.request.contextPath }/assets/easyui.js/easyui.ext.js"></script>
		<!-- <script type="text/javascript" src="${pageContext.request.contextPath }/assets/js/menu.js"></script> -->
		<script type="text/javascript"
	src="${pageContext.request.contextPath }/assets/js/message.js"></script>
		<script type="text/javascript"
	src="${pageContext.request.contextPath }/assets/js/MD5.js"></script>
		<script type="text/javascript"
	src="${pageContext.request.contextPath }/assets/js/moment.js"></script>
		<script type="text/javascript"
	src="${pageContext.request.contextPath }/assets/js/zh-cn.js"></script>
    </head>

<script type="text/javascript">
	$(document).ready(function() {
		//分页查询美美推荐
		 var url = "${pageContext.request.contextPath }/listRecommand.do";
		var data = {
			pageSize : 10,
			page : 1
		};
		$.post(url, data, function(resp) {
			alert(JSON.stringify(resp));
		}, 'json'); 

	});
</script>
</head>

<body>
	<h3>美美推荐</h3>
	<form action="${pageContext.request.contextPath }/saveRecommend.do"
		onsubmit="checkForm()" method="post" enctype="multipart/form-data">
		标题<input name="title"> <br> 内容
		<textarea name="content"></textarea>
		<br> 跳转url<input name="linkUrl"> <br> 美美图片<input
			type="file" name="file"> <br> <input type="submit"
			value="添加">
	</form>

	



</body>
</html>